					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Add new Post</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<!--[if !IE]>end title wrapper<![endif]-->
					
					<!--[if !IE]>start section content<![endif]-->
					<div class="section_content">
						<span class="section_content_top"></span>
						
						<div class="section_content_inner minheight">
                        	<div class="table_tabs_menu">
							<!--[if !IE]>start  tabs<![endif]-->
							<!--[if !IE]>end  tabs<![endif]-->

							</div>
				<!--[if !IE]>start table_wrapper<![endif]-->
							<div class="table_wrapper" style="background:none;">
								<div class="table_wrapper_inner">
                                	<div class="error_red"><?php if(isset($error)) { echo "<p>".$error."</p>"; } ?></div>
                                    <form method="post" name="sac" onsubmit="return fullvalidate()" enctype="multipart/form-data">
                                    	 <div class="form_items">
                                    		<div class="form_items_left">Title</div>
                                        	<div class="form_items_right"><input value="<?php echo $current["title"]; ?>" type="text" name="title" size="35" /></div>
                                   		 </div>
                                          <div class="form_items">
                                    		<div class="form_items_left">Keyword</div>
                                        	<div class="form_items_right"><input value="<?php echo $current["keyword"]; ?>" name="keyword" type="text" size="35"></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Video path</div>
                                        	<div class="form_items_right"><input value="<?php echo $current["pathofvideo"]; ?>" name="pathofvideo" type="text" size="35"></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Description</div>
                                        	<div class="form_items_right"><textarea name="description" rows="5"><?php echo $current["description"]; ?></textarea></div>
                                   		 </div>
                                        
                                        
                                         <div class="form_items">
                                    		<div class="form_items_left">Avatar</div>
                                        	<div class="form_items_right"><img src="<?php echo base_url()."uploads/video/".$current["avatar"]; ?>" width="100px" /><input name="avatar" type="file" id="img" size="35" /></div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Category</div>
                                        	<div class="form_items_right">
                                            <select name="categoryid">
                                            <option value="0">Root</option>                                
											<?php 
                                                foreach($hierarchydata as &$item){
                                                    ?>
                                                    <option  <?php if($item["id"]==$current["categoryid"]) echo 'selected="selected"'; ?>  value="<?php echo $item["id"]; ?>"><?php echo $item["name"]; ?></option>
                                                    <?php 
                                                }
                                            ?>
                                            </select>
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">Status</div>
                                        	<div class="form_items_right">
                                            <select name="status">
                                            <option <?php if($current["status"]==0) echo 'selected="selected"'; ?> value="0">Hide</option>                                
                                            <option <?php if($current["status"]==1) echo 'selected="selected"'; ?> value="1">Show</option>
											<option <?php if($current["status"]==2) echo 'selected="selected"'; ?> value="2">Hot</option>
                                             </select>
                                            </div>
                                   		 </div>
                                          <div class="form_items">
                                    		<div class="form_items_left">Type</div>
                                        	<div class="form_items_right">
                                            <select name="type">
                                            <option <?php if($current["type"]==0) echo 'selected="selected"'; ?> value="0">Youtube</option>                                
                                            <option <?php if($current["type"]==1) echo 'selected="selected"'; ?> value="1">In website</option>
                                            </select>
                                            </div>
                                   		 </div>
                                          <div class="form_items">
                                    		<div class="form_items_left">Content</div>
                                        	<div class="form_items_right">
                                            <?php 
										$fck = new FCKeditor('contents');
										$fck->BasePath = sBASEPATH;
										$fck->Value=$current["contents"];
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>  
                                            </div>
                                   		 </div>
                                         <div class="form_items">
                                    		<div class="form_items_left">&nbsp;</div>
                                        	<div class="form_items_right"><input type="submit" name="ok" value="Edit video" class="magin"/></div>
                                   		 </div>
                                    </form>
								</div>
							</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
						<span class="section_content_bottom"></span>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>